#include "Test2.h"
#include <iostream>
using namespace std;

Test2::Test2(){
        m_a = 0;
        m_b = 0;
        cout<<"无参构造函数"<<endl;        
}

Test2::Test2(int a){
        m_a = a;
        m_b = 0;
        cout<<"有参构造函数"<<endl;
}

Test2::Test2(int a, int b){
        m_a = a;
        m_b = b;
        cout<<"有参构造函数"<<endl;        
}

Test2::Test2(const Test2 &object){

        cout<<"赋值(拷贝)构造函数"<<endl;        
}

void Test2::print(){
        cout<<"普通成员函数"<<endl;
}

Test2::~Test2(){
        cout<<"析构造函数"<<endl;        
}